export { useHistoryStore } from './history'
export { useSearchStore } from './search'
export { useRecoveryStore } from './recovery'
export { useUIStore } from './ui'
export { useDiffStore } from './diff'
export { useEventBus, useEventBusWithHistory } from './events'
export { useStores, useCache, initializeStoreIntegrations } from './integration'

// Auto-initialize integrations when stores are imported
import { initializeStoreIntegrations } from './integration'

// Initialize on module load
if (typeof window !== 'undefined') {
  initializeStoreIntegrations()
}